# -*- coding: utf-8 -*-
# author: sixmillions
# date: 2022/3/21

from urllib import request


class Spider():
    def __getHtmlContent(self):
        url = "https://www.runoob.com/python3/python3-tutorial.html"
        response = request.urlopen(url)
        htmls = str(response.read(), encoding='utf-8')
        return htmls

    def __analysis(self, htmls):
        print(htmls)

    def go(self):
        htmls = self.__getHtmlContent()
        self.__analysis(htmls)


spider = Spider()
spider.go()
